package com.ruoyi.maode.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.maode.domain.dto.QuerySupplierDTO;
import com.ruoyi.maode.domain.entity.Supplier;
import com.ruoyi.web.util.PageQuery;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * 供应商接口
 * @author zhangwenqiang
 */
public interface SupplierService extends IService<Supplier> {

    /**
     * 新增供应商
     * @param supplier
     * @return
     */
    int add(Supplier supplier);

    /**
     * 查询供应商列表
     * @param dto
     * @return
     */
    Page<Supplier> selectSupplierList(PageQuery<QuerySupplierDTO> dto);
}
